Assignment #3 Playing with Variables

Introduction
The student store is in chaos! You are the only hope for restoring sanity to their system!
The problem is, no one seems to know how much money they should be making!
They buy Cokes, Zenyas, Doritos and Mama Noodles for one price. Then, they sell them for another (higher) price.
The money in the cash box seems to be increasing - but is someone stealing?

Assignment
You must create a program that will calculate the profit the student store should make in a day and use it to determine if someone is stealing from the cash box.
Output should be in the form:
Zenyas Sold: 7
Cokes Sold: 7
Mama Noodles Sold: 7
Doritos Sold: 7
Total Profit: $9.1



Environment
Product
Purchase Price
Selling
Zenya
$0.60
$1.00
Coke
$0.25
$0.50
Mama Noodles
$0.35
$0.75
Doritos
$0.75
$1.00
*Note: These prices are completely made up

Mr. Hein has made the following table, tracking what was sold each day and how much money was turned in. Using your program to generate the results, fill in the following table.
Person
Zenyas Sold
Cokes Sold
Mama Noodles Sold
Doritos Sold
Cash Turned In
Predicted Profit
Stealing? (Y/N)
Michael Chagrinigin
10
5
6
9
$9.40


Alfie Elatorius
20
10
1
8
$10.90


Joao Jao
15
7
7
2
$11.05


Voldemort Voleureus
25
30
41
87
$48.24


Totals:
70
52
55
106
$76.69




You will be graded as follows:
  • Name, program title and description in comments: 1 pt
  • Helpful comments throughout: 1pt
  • Code is readable (good variable names, organized and easy to understand): 1pt
  • Generates correct results: 4 pts (will test with table values)
  • Table filled out correctly: 1pt
  • Output in correct format: 2 pts
Bonus
  • Display the information in the main window (not in the terminal section of Processing)